﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAL_Class;

namespace NLLSite.UserControl
{
    public partial class AdBannerBot : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            UIAdvertise objUIAdvertise = new UIAdvertise();
            IEnumerable<DAL_Class.Advertise> objAd = objUIAdvertise.GetBannerBot();
            if (objAd.Count() > 0) {
                lblBannerBot.Text = "<div class=\"dich-vu\">";
                string temp = "";
                foreach (DAL_Class.Advertise ad in objAd)
                {
                    temp = ad.Content;
                }
                lblBannerBot.Text += temp;
                lblBannerBot.Text +="</div>";
            }
            
        }
    }
}